package com.qf.controller;

import com.qf.dto.PageQueryDTO;
import com.qf.ge.model.TUsers;
import com.qf.service.OneTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ahuan
 * @classname OneTestController
 * @description TODO
 * @date 2023年11月29日 11:56
 */
@RestController
@RequestMapping("qf")
public class OneTestController {

    @Autowired
    OneTestService oneTestService;

    /**
     * 四方达
     */
    @PostMapping("one")
    public void onetest(@RequestBody PageQueryDTO page){
        oneTestService.listPage(page);
        System.out.println("aaaaaaaaaaaa");
    }

    /**
     * 四方达
     */
    @PostMapping("list")
    public void onetestList(@RequestBody PageQueryDTO page){
        List<TUsers> list = oneTestService.list();
        System.out.println("aaaaaaaaaaaa");
    }
    @PostMapping("listt")
    public void onetestfdsf(@RequestBody TUsers tUsers){
        List<TUsers> list = oneTestService.list();
        System.out.println("aaaaaaaaaaaa");
    }
}

